﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

namespace ETWJ.ERP.Controllers
{
    public class HomeController : Controller
    {
        /// <summary>
        /// ERP系统首页
        /// </summary>
        /// <returns></returns>
        public IActionResult Index()
        {
            return View();
        }

        /// <summary>
        /// 网站信息
        /// </summary>
        /// <returns></returns>
        public ActionResult WebInfo()
        {
            return View();
        }


        public IActionResult Login()
        {
            return View();
        }

        public async Task<IActionResult> Tip(string redirectUrl="/Employee/List",string msg="操作成功",string isSuccess="ok")
        {
            ViewBag.RedirectUrl = redirectUrl;
            ViewBag.Msg = msg;
            ViewBag.IsSuccess = isSuccess.ToLower();
            return View();
        }
    }
}